<!DOCTYPE html>
<html lang="en">
<head>
[#include "/customer/include/static.htm"]
    <link href="${path}/resources/css/user.css?v=2" rel="stylesheet" type="text/css"/>
    <link href="${path}/resources/plug/layui/css/layui.css" rel="stylesheet" type="text/css"/>
    <script src="${path}/resources/plug/layui/layui.js" type="text/javascript"></script>
    <script type="text/javascript" src="${path}/resources/js/jquery.form.js"></script>
    <style type="text/css">

    </style>
</head>
<body>
<!--头部-->
[#include "/customer/include/header.ftl"]



<!--头部 end -->
<!-- container start -->
<div class="member">
    <!--左边-->
<style>
    .btnRed_F_small{
        width: 80px;
        height: 36px;
        line-height: 34px;
        overflow: hidden;
        display: block;
        margin: 0 auto;
        color: #fff;
        font-size: 16px;
        text-align: center;
        cursor: pointer;
        outline: none;
        background-color: #F3485A;

    }

    td {
        border: #c0c9d5 1px solid!important;;
    }
    tr{
        border: #c0c9d5 1px solid!important;
    }
    th{
        border: #c0c9d5 1px solid!important;;
    }
</style>
[#include "/customer/include/member_left_menu.ftl"]
    <!--左边 end-->
    <div class="memberMain">
        <div class="memberUser">
            <div class="fleft">
               <span class="fleft">

                                <img style="width: 100px; height: 100px"
                                     src="${path}/resources/images/member.png">
               </span>
               <span class="fright">
                   <h6><b>${Session.loginUser.user_name}</b>&nbsp;&nbsp;

                   </h6>
                   安全等级
                    <div class="layui-progress">
                        <div class="layui-progress-bar layui-bg-orange" lay-percent="50%" style="width: 50%;"></div>
                    </div>

               </span>
            </div>
            <div class="fright">
                <b>认证情况</b>
                <font class="clear">


                [#if ((email.is_passed)!'')==1 ]
                    <a href="/member/auth/email">
                 	                    <span class="icon_mail_1 icon" title="已邮箱认证" >
                    </span>                </a>
                [#else]
                    <a href="/member/auth/email">
                 	                    <span class="icon_mail_0 icon" title="未邮箱认证" >
                    </span>                </a>
                [/#if]

                [#if realName??]
                    <a href="${path}/member/auth">
                        [#if (realName.status)==1]
                            <a href="/member/auth">
                 	                    <span class="icon_real_1 icon" title="未实名认证">
                    </span>                </a>
                        [#else]
                            <a href="/member/auth">
                 	                    <span class="icon_real_0 icon" title="未实名认证">
                    </span>                </a>
                        [/#if]
                    </a>
                [#else]
                    <a href="${path}/member/auth">
                 	                    <span class="icon_real_0 icon" title="未实名认证">
                    </span>                </a>
                    </a>
                [/#if]
                    <a href="${path}/member/auth/mobile">
                 	<span class="icon_phone_1  icon" title="手机已认证">
                    </span>
                    </a>
                </font>
                为了您的账户安全，请进行<a class="fontRed" href="${path}/member/ucenter/safe">用户认证</a>
            </div>
        </div>

        <h1 >账户详情</h1 >

        <div class="memberInfo">
            <div class="fleft" style="height: 230px">
                <b><a href="javascript:void(0)" rel="tooltip" title="总额=账户总额+贷手">账户总额</a></b>
                <em>￥ ${currency((account.total+account.collection)!0)}</em>
                <a class="fontBlue" href="/member/account/log">资金记录查询</a><br>
                <a class="fontBlue" href="/member/account/recharges">充值查询</a> |
                <a class="fontBlue" href="/member/account/withdrawals">提现查询</a>
            </div>
            <ul class="fright">
                <li>
                    <span><p title="可用余额表示当前您账户中可实际用来来投标的金额">可用余额</p><b>￥${currency((account.balance)!0)}</b></span>
                    <span><p title="冻结金额账户中暂时冻结的金额，一般是投标中(尚未满标审核)">冻结总额</p><b>￥ ${account.freezing_amont}</b></span>
                    [#--<span><p title="待收资金">活期宝总额</p><b>￥  ${currency((yuEbao.total)!'0')}</b></span>--]
                    <span><p title="待收资金">待收资金</p><b>￥ ${currency((account.collection)!0)}</b></span>


                </li>
                <li>
                    <span><p title="待收资金">待收利息</p><b>￥${interest!'0'}</b></span>
                    <span><p title="待收资金">累计净赚收益</p><b>￥${income!'0'}</b></span>
                    <span><p title="待收资金">累计提现</p><b>￥${recharge!'0'}</b></span>
                    <span><p title="待收资金">累计充值</p><b>￥${cash!'0'}</b></span>


                </li>
                <li class="borderNone">

                    <span> <button class="layui-btn  layui-btn-warm" style="width: 100px;background-color: #f3485a"
                                   onclick="location.href='${path}/member/account/gocash'">提现
                    </button></span>
                    [#--<span><button class="layui-btn  layui-btn-normal" style="width: 100px;background-color: #f3485a"--]
                                  [#--onclick="location.href='${path}/member/account/go_recharge_offline'">线下充值--]
                    [#--</button></span>--]
                    <span> <button class="layui-btn  " style="width: 100px;background-color: #f3485a"
                                   onclick="location.href='${path}/member/account/go_recharge_online'">网银充值
                    </button></span>


                </li>
            </ul>
        </div>

       <h1>收支明细(<a href="${path}/member/account/log">查看全部</a>)</h1>

            <table class="layui-table" style="border: #c0c9d5 1px solid!important;">

                <thead>
                <tr>
                    <th >时间</th>
                    <th >交易类型</th>
                    <th >资金</th>
                    <th >可用余额</th>
                    <th >总金额</th>
                    <th>冻结</th>


                </tr>
                </thead>
                <tbody>

                [#if logs?? && logs?size > 0]
                    [#list logs as log]
                    <tr>
                        <td class="td1">
                        ${p2p_date_format(log.addtime,"yyyy-MM-dd HH:mm:ss")}
                        </td>
                        <td class="td2">
                            <div class="i-table-icon i-table-icon1"><b
                                    class="i-table-tips-tit">${p2p_get_dict("account_type", log.type)}</b>
                                <i class="i-table-tips-icon">
                                    <div class="i-table-tips-box">
                                        <b></b>

                                        <p>${(log.remark)!''}</p>
                                    </div>
                                </i>
                            </div>
                        </td>
                        <td class="td3">
                            [#if log.flow=='in']
                                <b class="b-col1">+ ${log.money }</b>
                            [#elseif log.flow=='out' ]
                                <b class="b-col2">- ${log.money }</b>
                            [#elseif log.flow=='thaw' ]
                                <b>解冻 ￥${log.money }</b>
                            [#elseif log.flow=='out_yuebao' ]
                                <b>活期宝撤购 ￥${log.money }</b>
                            [#elseif log.flow=='into_yuebao' ]
                                <b>活期宝购买 ￥${log.money }</b>
                            [#elseif log.flow=='col']
                                <b style="color:deepskyblue">￥${log.money }</b>
                            [#else]
                                <b >冻 ￥${log.money }</b>
                            [/#if]
                        </td>
                        <td class="td5">￥${(log.balance)!'' }</td>
                        <td class="td5">￥${(log.total)!'' }</td>
                        <td class="td5">￥${(log.freezing_amont)!'' }</td>

                    </tr>
                    [/#list]
                [#else]
                <tr>
                    <td colspan="7" style="background: #fff">
                        <div class="nodataimg"></div>
                    </td>
                </tr>
                [/#if]

                </tbody>
            </table>


    </div>
</div>

[#include "/customer/include/footer.ftl"]

</body>
</html>